<template>
  <div class="app">
    <hr class="two" />

    <h1>GlobalEventBus 全局事件总线，实现跨组件通信</h1>
    <h1>{{ msg }}</h1>
    <School />
    <Student />
  </div>
</template>

<script>
import Student from './Student'
import School from './School'

export default {
  name: 'GlobalEventBus',
  components: {School, Student},
  data() {
    return {
      msg: '你好啊！',
    }
  }
}
</script>

<style scoped>
.app {
  background-color: gray;
  padding: 5px;
  margin-bottom: 20px;
}
</style>
